import { OrderTypeEnum } from '@/enums/orderEnum';
/** 人脉解锁(联系方式) */
export type OrderPreview = {
  orderType: OrderTypeEnum;
  memberLeadingId: number;
};

export type OrderDetails = {
  id?: string;
  orderCode: string;
  callback?: () => void;
};

export type UnlockStep = Partial<OrderPreview & OrderDetails>;

/** 选择票种 */
export type SelectTicketType = {
  /** 自己是否报名 */
  selfIsSignUp: boolean
  /** 邀约人的分享key */
  shareKey?: string
  /** 设备编号 */
  equipmentNumber?: string
  /** 路由场景 活动详情 | 活动签到 */
  routerScene?: 'detail' | 'signIn'
}

export type CreateActivityRegisterOrder = {
  /** 票种ID */
  ticketId: number
  /** 已选数量 */
  selectedQuantity: number
} & SelectTicketType

export type ActivityRegisterOrder = {
  scene?: 'createActivityRegisterOrder'
} & OrderDetails